<?php
/**
 * 
 * 
 * @author AnthonyYang
 */
class JCrudController extends JExtController 
{
	/**
	 * @var CModel
	 * 
	 * @access protected
	 */
	protected $model;

	/**
	 * 
	 * 
	 * @author AnthonyYang
	 * @access public
	 * @return void
	 */
	public function setModel ($class)
	{
		$className = Jii::import($class);
// 		$this->model = new $className();
		
		return $this;
	}

	/**
	 * 
	 * 
	 * @author AnthonyYang
	 * @access public
	 * @return void
	 */
	public function actionIndex ()
	{
		echo '<pre>', "\n";
		var_dump($this->getModule()->getId());
		var_dump($this->getId());
		var_dump($this->getAction()->getId());
		echo "\n", '</pre>', "\n";
		//exit;
	}
}